#if !defined(WINDOWSWINDOW_H)
#define WINDOWSWINDOW_H

#include <Windows.h>
#include "resources/resourcemanager.h"

namespace gunsmith
{
class CWindowsWindow
{
public:
					CWindowsWindow	(UINT p_iWidth, UINT p_iHeight);
	virtual			~CWindowsWindow	();
	virtual void	MessageLoop		();
	
protected:
	bool					Create	();
	virtual void			Init	();
	virtual void			PreInit	();
	virtual void			Render	(float p_fDelta);
	static LRESULT CALLBACK	WndProc	(HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam);

	HWND				m_hWnd;
	UINT				m_iWidth;
	UINT				m_iHeight;
	static bool			m_bRunning;
	HINSTANCE			m_hInstance;
	CResourceManager*	m_pResMngr;

private:
	void	CreateWindowResource();
};
};

#endif // WINDOWSWINDOW_H